package cn.com.huzo.webapp.controller.oa;

import huzofw.common.web.controller.BaseFormController;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 请假
 *
 * @author 吴旭
 */
@Controller
@RequestMapping(value = "/oa/leave")
public class LeaveController extends BaseFormController {

    // <editor-fold defaultstate="collapsed" desc="属性">
    // </editor-fold>

    // <editor-fold defaultstate="collapsed" desc="画面处理部分">
    /**
     * 跳转到请假一览画面
     * <p>
     * @param request
     * @return
     * @throws java.lang.Exception
     */
    @RequestMapping("/list.html")
    public ModelAndView redirectListWnd(HttpServletRequest request) throws Exception {
        ModelAndView view = new ModelAndView();
        view.setViewName("oa.leave.list.def");
        return view;
    }

    /**
     * 跳转到请假编辑画面
     *
     * @return
     */
    @RequestMapping("/leave/edit.html")
    public ModelAndView redirectEditPopupWnd() {
        ModelAndView view = new ModelAndView();
        view.setViewName("oa.leave.edit.def");
        return view;
    }
    // </editor-fold>

    // <editor-fold defaultstate="collapsed" desc="数据处理部分">
    // </editor-fold>
}
